<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
<script>
var tbarOpr = [],queryRole=false,editRole=false;
<c:if test="${my:hasPermission(currentUser.id,'goodsCategory','CREATE')}">
tbarOpr.push({
	text : '新增',
	iconCls : 'page_addIcon',
	handler : function() {
		listView.addInit();
	}
});
</c:if>
<c:if test="${my:hasPermission(currentUser.id,'goodsCategory','UPDATE')}">
	editRole=true;
	tbarOpr.push({
		text : '修改',
		iconCls : 'page_edit_1Icon',
		handler : function() {
			listView.editInit();
		}
	});
	</c:if>
	<c:if test="${my:hasPermission(currentUser.id,'goodsCategory','DELETE')}">
	tbarOpr.push({
		text : '删除',
		iconCls : 'page_delIcon',
		handler : function() {
			listView.deleteItem();
		}
	});
	</c:if>
	<c:if test="${my:hasPermission(currentUser.id,'goodsCategory','READ')}">
	queryRole=true;
	</c:if>
</script>
<%@include file="/WEB-INF/common/topEnd.jsp"%>	
<%@include file="/WEB-INF/common/bodyBegin.jsp"%>
    <!--     RowAction    -->
    <script type="text/javascript" src="${ctx}/js/extjs/ux/Ext.ux.grid.RowActions.js"></script>
    <!--     form & view    -->
    <script type="text/javascript" src="${ctx}/js/app-web/dict/goodsCategory/goodsCategoryForm.js"></script>
	<script type="text/javascript" src="${ctx}/js/app-web/dict/goodsCategory/goodsCategoryView.js"></script>
	<script type="text/javascript" src="${ctx}/js/extjs/ux/ResetDateField.js"></script>
<%@include file="/WEB-INF/common/bodyEnd.jsp"%>	
